package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ForumReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rid", type = IdType.AUTO)
    private Integer rid;
    private String content;
    @TableField("postTime")
    private Date postTime;
    @TableField("ipAddress")
    private String ipAddress;
    @TableField("authorId")
    private Integer authorId;
    @TableField("topicId")
    private Integer topicId;
    private String deleted;//删除标志 1表示已经删除 0表示没有删除

    @TableField(exist = false)
    private ForumTopic topic;//当前回复属于哪个主题
    @TableField(exist = false)
    private User author;//作者
}
